package jeconbond.economic.agent.service;

public class NextStepCommandAgent implements IPostActServiceAgent {
	private int remaintMicroSteps;
	private int stepSize;
	public int[] stepCounter = new int[1];
	
	public NextStepCommandAgent(int stepSize) {
		this.stepSize = stepSize;
		remaintMicroSteps = stepSize;
	}

	@Override
	public void processPreProduceStage() {}

	@Override
	public void processProduceStage() {}
	
	@Override
	public void processPostProduceStage() {
		remaintMicroSteps--;
		if (remaintMicroSteps <= 0) {
			stepCounter[0]++;
			remaintMicroSteps = stepSize;
		}
	}
}
